<template>
  <div>
    <div v-for="fn in fnList" :key="fn.name" class="list-item" @click="handleItemClick(fn)">
      <div>
        <div>{{ fn.zwmc || fn.name }}<span v-show="!fn.builtIn" style="color:#419fff">(外部方法)</span></div>
        <div style="color: red">{{ fn.ffStr }}</div>
      </div>
    </div>
  </div>
</template>

<script>
import {mapState} from 'vuex'

export default {
  name: "SelectFf",
  computed: {
    ...mapState(['fnList'])
  },
  methods: {
    handleItemClick(ff) {
      this.$emit('select', ff)
    }
  }
}
</script>

<style scoped>

</style>
